home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / dskut / tenex.zip / TENEX.DOC < prev    next >
Text File  |  1988-09-07  |  2KB  |  46 lines

  1.     I had just spent a few hours uploading MSDOS stuff from SIMTEL20.
  2. Back on my PC, I realized that while I had remembered to transfer everything
  3. in binary mode (in FTP), that I had neglected to account for (is it called ?)
  4. TENEX mode (since SIMTEL20 is a 36-bit machine). I decided it would be faster
  5. to write a C program to convert the 36-bit data into good ol' 8-bit bytes,
  6. than re-upload every. So here is the program. I used MSC 5.0. If anyone needs
  7. a binary copy for MSDOS, I'll mail them one. I hope this wheel hasn't been
  8. reinvented too many times...
  9.  
  10.                     Cheers,
  11.                     Dan Ts'o
  12.                     tso@rockefeller.edu
  13.                     dan@rna.rockefeller.edu
  14.                     ...cmcl2!rna!dan
  15.                     212-570-7671
  16.                     Dept Neurbiology
  17.                     The Rockefeller University
  18.                     1230 York Ave.
  19.                     NY, NY  10021
  20. /*
  21.  * TENEX convert - convert tenex 36-bit files into standard 8-bit
  22.  *    byte stream by discarding every 9th nibble (hopefully its zero).
  23.  *    Also convert TENEX 7-bit ASCII to standard 8-bit byte ASCII by
  24.  *    discarding every 36th bit.
  25.  *
  26.  *    Written by Daniel Ts'o, dan@rna.rockefeller.edu, 9/7/88
  27.  *
  28.  *    Usage: tenex [-[t|b]] [-[v|q]] [files...]
  29.  *
  30.  *    -t    Convert 5x7bit ASCII (35+1bit packing) into 8-bit byte stream
  31.  *    -b    Convert 4*8bit binary (32+4bit packing) into 8-bit byte stream
  32.             (Default is -b)
  33.  *    -v    Print progress on stderr
  34.  *    -q    Quietly delete nonzero bits
  35.  *
  36.  *    If file arguments are given, they are converted "in place", using
  37.  *        temporary file "tenex.tmp".
  38.  *    If file arguments are missing, convert stdin to stdout (filter mode).
  39.  *
  40.  *    Compile with MSC 5.0 on MSDOS:
  41.  *
  42.  *        cl tenex.c \lib\setargv.obj /link /NOE
  43.  *
  44.  *    to permit wildcard expansion.
  45.  */
  46.